#ifndef _Path_h
#define _Path_h

#include "common.h"

#define  Buzzer_on    gpio_set(D14,1)     
#define  Buzzer_off   gpio_set(D14,0)

extern u8 circle_direction[3];
extern u8 bighuan;
extern u8 huan_cnt;

extern u8 dis_temp_little;
extern u8 block_set;
extern u16 block_set_cnt;
extern uint8 block_flag;
extern u8 block_straight;
extern uint8 block_flag_cnt;
extern uint16 block_time_cnt;

extern u8 dis_temp_little;
extern int fuhao_dis_temp;
extern u16 block_out_cnt;
extern u8 block_cnt;

extern u16 block_podao_cnt;
extern u8 podao_cnt;
extern u16 podao_delay_cnt;

extern u16 in_straight_cnt;
extern u8 in_straight_flag;

extern uint8 start_point;
extern uint16 start_not_detect;
extern	char data[8];
void circe_detect(void);
extern char distance_num;
extern char dis[7];

extern u16 tof_data[8];           
extern char tof_distance_num;
extern char tof_dis[7];            

void if_block(void);
void block_detect(void);
void in_straight_detect(void);

#endif 

